﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using csvm2.coordinator;
using csvm2.fileadapter;
using csvm2.pagebuilder;
using csvm2.recordbuilder;
using ebc.componentbinder;

namespace csvm2.portal
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var fa = new FileAdapter();
            var rb = new RecordBuilder();
            var pb = new PageBuilder();
            var coord = new Coordinator(fa, rb, pb);

            var po = new WinMain();
            new ComponentBinder().Bind(po, coord);

            Application.Run(po);
        }
    }
}
